package wggcth.controle.action;

import com.opensymphony.xwork2.ActionSupport;

import java.util.Map;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.interceptor.SessionAware;


public class WggcthAction extends ActionSupport implements SessionAware {

	private static final long serialVersionUID = 1L;
	private Map session;
	
	private int Nvariavel;
	private int Namostra;



        @Action(
            value="preencheVariavelAmostra",
            results={
                @Result(name="preencheVariavelAmostra", location="/WEB-INF/pages/comuns/preencher_var_amo.jsp"),
                @Result(name="error", location="/WEB-INF/pages/comuns/login.jsp")

            }
        )


	/**************************/
	public String preencheVariavelAmostra()
	/**************************/
	{	session.put("Nvariavel", Nvariavel);
		session.put("Namostra", Namostra);
		return "preencheVariavelAmostra";
	}


	/**************************/
	public String setCalculo()
	/**************************/
	{	
		
		
		return "gotoGrafico";
	}



	public void setNamostra(int namostra) {
		Namostra = namostra;
	}
	public int getNvariavel() {
		return Nvariavel;
	}


	public void setNvariavel(int nvariavel) {
		Nvariavel = nvariavel;
	}


	public int getNamostra() {
		return Namostra;
	}



	
	public Map getSession() {
		return session;
	}

	public void setSession(Map session) {
		this.session = session;
	}

	
}
